<template>
	<router-view />
</template>
<script lang="ts" setup>
	import {
		provide,
		onBeforeMount,
		watch,
		onMounted
	} from "vue";
	import router from "./router";
	import store from './store'
	import { setRem } from './public/common'
	import { webServer } from "./views/main/webServer"
	import bus from './public/bus'
	provide('store', store)
	provide('router', router)
	onMounted(()=>{
		
		if(store.state.userInfoX && store.state.userInfoX.token){
			store.commit('sockerMain',webServer(store.state.userInfoX?.account))
		}
		if (process.env.NODE_ENV === 'production') {
		  if (window) {
		    window.console.log = function () {};
		  }
		}
		setTimeout(()=>{
			bus.emit('reviseSuccess',1)
		},1000)
		
	})
</script>
<style lang="scss">
	@import './public/common.scss'
</style>
